class Client < ActiveRecord::Base
validates_presence_of :fname
validates_presence_of :lname
validates_presence_of :email
validates_presence_of :CCnumber
validates_presence_of :CCType
validates_presence_of :CCName
validates_presence_of :employeeID
validates_length_of :fname, :minimum => 1
validates_length_of :lname, :minimum => 1
validates_length_of :email, :minimum => 1
validates_length_of :CCType, :minimum => 1
validates_length_of :CCName, :minimum => 1
validates_length_of :employeeID, :minimum => 1

validates_numericality_of :CCnumber, :on => :update,:message => "Must be numeric"
def self.clients_all
 find(:all, :conditions => "id > 0", :order => "id" )
end
  
end

